
import {simpleServer} from '@/tools/servers'

/**
 * 线路节点关系
 */
export class RouteNodeRelationService {
    // 分页查询列表
    static findRouteNodeRelations (pageDTO) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.findRouteNodeRelations,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelations', body);
    }


    //根据线路节点关系Id查询线路节点关系
    static findRouteNodeRelation (routeNodeRelationId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findRouteNodeRelation ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelation',body);
    }

    //为了编辑,根据线路节点关系Id查询线路节点关系
    static findRouteNodeRelationForEdit(routeNodeRelationId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findRouteNodeRelationForEdit ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelationForEdit',body);
    }

    //为了查看,根据线路节点关系Id查询线路节点关系，所有外键字段的名称都已加载
    static findRouteNodeRelationForView(routeNodeRelationId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findRouteNodeRelationForView ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelationForView',body);
    }

    //创建新的线路节点关系
    static createRouteNodeRelation() {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.createRouteNodeRelation,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/createRouteNodeRelation',body);
    }

    //保存线路节点关系
    static saveRouteNodeRelation(routeNodeRelation) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.saveRouteNodeRelation,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/saveRouteNodeRelation', body);
    }

    //编辑线路节点关系
    static updateRouteNodeRelation (routeNodeRelation) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.updateRouteNodeRelation,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/updateRouteNodeRelation', body);
    }

    //根据线路节点关系Id删除线路节点关系
    static deleteRouteNodeRelation (routeNodeRelationId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.deleteRouteNodeRelation,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/deleteRouteNodeRelation',body);
    }

    //为了查看,根据线路节点关系Id查询线路节点关系，只加载ID 和 名称
    static findRouteNodeRelationsWithIdNameById(routeNodeRelationId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findRouteNodeRelationsWithIdNameById ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelationsWithIdNameById',body);
    }

    //为了查看,根据线路节点关系 名称 查询线路节点关系，只加载ID 和 名称
    static findRouteNodeRelationsWithIdNameByName(routeNodeRelationName) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findRouteNodeRelationsWithIdNameByName ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/RouteNodeRelation/findRouteNodeRelationsWithIdNameByName',body);
    }


}
